package com.leo.common.core.jackson;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.datatype.jsr310.PackageVersion;

/**
 * <p>
 * JzJavaLongModule
 * </p>
 *
 * @author ：Leo
 * @since ：2021-03-01 11:17
 */
public class JzJavaLongModule extends SimpleModule {

	public JzJavaLongModule() {
		super(PackageVersion.VERSION);
		this.addSerializer(Long.class, ToStringSerializer.instance);
		this.addSerializer(Long.TYPE, ToStringSerializer.instance);
	}

}
